package com.xsz.streamdemo;

import java.util.Arrays;
import java.util.List;

public class Demo1 {
    public static void main(String[] args) {
//     List<Integer> number= Arrays.asList(1,2,1,3,3,2,4);
        List<String> list= Arrays.asList("Java","JavaScript","Mysql","SSM");
        //终端
//        List<String> filterList =
                list.stream()
                .filter(s -> s.contains("J")).forEach(System.out::println);

    }
}
